Previous Book Contents Book Index Next

Inside Macintosh: QuickTime /
Chapter 2 - Movie Toolbox / Movie Toolbox Reference
Functions for Getting and Playing Movies / Disabling Movies and Tracks


SetTrackEnabled

The SetTrackEnabled function allows your application to enable and disable a track. The Movie Toolbox services only enabled tracks.

pascal void SetTrackEnabled (Track theTrack, Boolean isEnabled);
theTrack
Specifies the track for this operation. Your application obtains this track identifier from such Movie Toolbox functions as NewMovieTrack and GetMovieTrack (described on page 2-136 and page 2-188, respectively).
isEnabled
Enables or disables the track. Set this parameter to true to enable the track. Set this parameter to false to disable the track.
SPECIAL CONSIDERATIONS
When you disable a track, the Movie Toolbox may release system resources that are used by the track, including allocated memory.

ERROR CODES
invalidTrack-2009This track is corrupted or invalid
SEE ALSO
You can determine whether a track is enabled by calling the GetTrackEnabled function, which is described in the next section.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
6 JUL 1996